﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WPF_MVVM_PathSearchUtil.Models;

namespace WPF_MVVM_PathSearchUtil.util
{
    public class ListToCollection
    {
        /// <summary>
        /// 把List转为ObservableCollection
        /// </summary>
        /// <param name="fileList"></param>
        /// <param name=""></param>
        public static void GetCollection(ref ObservableCollection<FileInfoModel> fileList, List<FileInfoModel> list)
        {
            foreach (FileInfoModel file in list)
            {
                fileList.Add(file);
            }
        }

    }
}
